<?php
class Pagemanager_Data_Updatepagesettings implements Pagemanager_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }

    public function main(array $variables = null) {
        $variables['query'] = "UPDATE page_settings SET page_settings.page_name='".$variables['post']['page_name']."', page_settings.subcategory_name='".$variables['post']['subcategory_name']."', page_settings.status_name='".$variables['post']['status_name']."', page_settings.access_level='".$variables['post']['access_level']."' WHERE page_settings.page_name='".$variables['post']['old_page_name']."';";
        //echo $variables['query'];
        //die();
        return $this->core_controller_dataoperation->main($variables);
    }

}
